package cfg

type Cfg struct {
	Server   []Server
	Upstream []Upstream
	Log      Log
}

type Server struct {
	Scheme string
	Listen string
	Ssl    interface{}
	Route  []Route
	Pass   string
}

// http
type Route struct {
	Location string
	Handler  string

	Pass string
}

type Upstream struct {
	Name      string
	EndPoints []EndPoint

	LoadBalancing string
}

type EndPoint struct {
	Path   string
	Weight int

	Enable bool
}

type Log struct {
	Access string
	Error  string
}
